package org.woosiyuan.util;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ServerSocket server;
		Socket socket = null;
		Car car = null;
		try {
			server = new ServerSocket(9999);
			System.out.println("server listen...");
			socket = server.accept();
			car = new Car(socket);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
